package com.bw.tap;

import com.bw.lib_core.bean.BaseBean;
import com.bw.lib_core.mvvm.model.BaseModel;
import com.bw.tap.bean.Community;
import com.bw.tap.bean.CommunityDataBean;

import java.util.List;
import java.util.concurrent.TimeUnit;

import io.reactivex.Observable;
import io.reactivex.Observer;
import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;

public class MainModel extends BaseModel {


    public Observable<CommunityDataBean> requestData1() {
        return Observable.timer(2, TimeUnit.SECONDS).map(new Function<Long, CommunityDataBean>() {
            @Override
            public CommunityDataBean apply(@NonNull Long aLong) throws Exception {


                return null;
            }
        });
    }

    public Observable<CommunityDataBean> requestData2() {
        return Observable.timer(2, TimeUnit.SECONDS).map(new Function<Long, CommunityDataBean>() {
            @Override
            public CommunityDataBean apply(@NonNull Long aLong) throws Exception {


                return null;
            }
        });
    }

    public Observable<CommunityDataBean> requestData3() {
        return Observable.timer(2, TimeUnit.SECONDS).map(new Function<Long, CommunityDataBean>() {
            @Override
            public CommunityDataBean apply(@NonNull Long aLong) throws Exception {


                return null;
            }
        });
    }
}
